package com.zy.mc_module.utils;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * Created on 18/11/1
 **/
public abstract class OnTextWatcher implements TextWatcher {
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
        //onTextChanged(s.toString());
    }

    @Override
    public void afterTextChanged(Editable s) {
        onTextChanged(s.toString());
    }

    public abstract void onTextChanged(String s);
}
